#!/usr/bin/python
# -*- coding: utf-8 -*-

LOADAVG_MIN=0.4

class Plugin():
    def name(self):
	return "loadavg"

    def check(self):
	    x = open("/proc/loadavg","r").read(10)
	    x = float(x[x.find(' '):])
	    if x > LOADAVG_MIN:
		    return "load average %s" % (x)
